(function () {
    var URL = window.UEDITOR_HOME_URL||"/js/ueditor/";
    window.UEDITOR_CONFIG = {
        //为编辑器实例添加一个路径，这个不能被注释
        UEDITOR_HOME_URL : URL
        //图片上传配置区
        ,imageUrl:"/admin.php/image/ueditor.php"             //图片上传提交地址
        //,imagePath:URL + "php/"                     //图片修正地址，引用了fixedImagePath,如有特殊需求，可自行配置
        ,imagePath:"/"                     //图片修正地址，引用了fixedImagePath,如有特殊需求，可自行配置
       //,imageFieldName:"upfile"                   //图片数据的key,若此处修改，需要在后台对应文件修改对应参数
        //,compressSide:0                            //等比压缩的基准，确定maxImageSideLength参数的参照对象。0为按照最长边，1为按照宽度，2为按照高度
        //,maxImageSideLength:900                    //上传图片最大允许的边长，超过会自动等比缩放,不缩放就设置一个比较大的值，更多设置在image.html中


        //图片在线管理配置区
        //,imageManagerUrl:"/admin.php/image/imageManager.php"       //图片在线管理的处理地址
        //,imageManagerPath:""                                    //图片修正地址，同imagePath

        //工具栏上的所有的功能按钮和下拉框，可以在new编辑器的实例时选择自己需要的从新定义
        ,toolbars:[["fullscreen","source","|","undo","redo","|","bold","italic","underline","strikethrough","superscript","subscript","|","forecolor","fontfamily","fontsize","|","insertunorderedlist","insertorderedlist","justifyleft","justifycenter","justifyright","justifyjustify","indent","rowspacingbottom","rowspacingtop","lineheight","autotypeset","|","unlink","link","anchor","searchreplace","separate","pagebreak","|","insertimage","imagenone","imageleft","imageright","imagecenter","|","inserttable","mergeright","mergedown","splittorows","splittocols","splittocells","mergecells"]]
        //当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置，否则以配置值为准
        ,labelMap:{
            'anchor':'', 'undo':''
        }
        //语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换，当然，前提条件是lang文件夹下存在对应的语言文件：
        //lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase()
    ,lang:'zh-cn'

        //主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换，当然，前提条件是themes文件夹下存在对应的主题文件：
        //现有如下皮肤:default,modern,gorgeous
        //,theme:'default'
        //,themePath:URL +"themes/"

        ,initialContent:''    //初始化编辑器的内容,也可以通过textarea/script给值，看官网例子

        ,initialFrameWidth:700  //初始化编辑器宽度,默认1000
        //,initialFrameHeight:320  //初始化编辑器高度,默认320
        
		//,zIndex : 900     //编辑器层级的基数,默认是900

        ,minFrameWidth:500    //编辑器拖动时最小宽度,默认800
        //,minFrameHeight:220  //编辑器拖动时最小高度,默认220
    };
})();
